home *** CD-ROM | disk | FTP | other *** search
- /* arexx Script
- Fade in Black
- */
-
- options results
- parse ARG Port b
-
- ADDRESS value Port
-
- pp_CountFrames
- nb=result
- if nb<2 then do
- pp_Warn 'Make*an*Anim*first.'
- EXIT
- end
-
- pp_GetWidth
- w=result
- pp_GetHeight
- h=result
-
- Pw=1
- Op=100
- pp_DialogInit 250 120 "*Shaker*" 4
- pp_Slider 0 100 5 100 16 "Start*Frame*#" 1 1 nb 1
- pp_Slider 1 100 25 100 16 "End*Frame*#" 1 1 nb nb
- pp_Slider 2 100 45 100 16 "Power" 1 1 20 Pw
- pp_Slider 3 100 65 100 16 "Opacity" 1 1 100 Op
- pp_Dialog
- rc=result
- if rc=0 then
- do
- EXIT
- end
-
- pp_GetDialog 0
- s0=result
-
- pp_GetDialog 1
- s1=result
-
- pp_GetDialog 2
- Pw=result
-
- pp_GetDialog 3
- Op=result
-
- pp_FindEmptyBrush
- Brush=result
- pp_SetBrush Brush
-
- pp_ClosestColor 0 0 0
- color=result
- pp_SetBpen color
-
- DO i=s0 to s1
- xr=trunc(random(0,1,time('S')),0)
- xr2=trunc(random(0,Pw,time('S')),0)
- yr=trunc(random(0,1,time('S')),0)
- yr2=trunc(random(0,Pw,time('S')),0)
-
- IF xr=0 then DO
- xr2=xr2*-1
- END
-
- IF yr=0 then DO
- yr2=yr2*-1
- END
-
- pp_GotoFrame i
- pp_pickbrush 0 0 w h
- IF Op=100 then DO
- pp_Cls
- END
- ELSE DO
- pp_BrushOpacity Op
- END
- pp_Plot w/2+xr2 h/2+yr2
-
- END
-
- pp_GotoFrame s0
-
- pp_BrushOpacity 100
- pp_FreeBrush
- pp_SetBrush CB
-
- EXIT
-
-
-
-
- sp=100/(s1-s0+1)
- pp_EffectOn
-
- pp_GotoFrame s0
-
- if fade=1 then
- DO
- do i=sp to 100 by sp
- pp_Shade i
- pp_BoxF 0 0 w h
- pp_NextFrame
- end
- END
- ELSE
- sp2=sp*-1
- DO
- do i=100 to sp by sp2
- pp_Shade i
- pp_BoxF 0 0 w h
- pp_NextFrame
- end
- END
-